package com.example.doma.mapper;

import com.example.doma.pojo.log;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface logMapper {
    @Select("select * from log")
    List<log> getlogs();
    log getlogByusername(String username);
    int addlog(log log);
    int update(log log);
    int deleteByusernameAnddate(@Param("username") String username,@Param("date") String date);
}
